package com.xbongbong.paas.statistics.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 测试用DTO
 * @author kaka
 * @time 2018-8-1 16:01
 */
@Setter
@Getter
@ToString
public class DemoDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID = -2617813493947546006L;

    /**
     * 应用名
     */
    @NotBlank(message="测试信息不能为空")
    @Length(min = 1, max = 20, message = "测试信息必须少于20字")
    private String testName;
}
